﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorldOnFire
{
    public static class CSettings
    {
        public enum eModifiers
        {
            WILD_WAVES,
            SHORT_RANGE_SENSORS,
            NO_SPARE_CHANGE,
            DOUBLE_TIME,
            JUGGERNAUT,
            COUNT
        };

        static private bool[] m_bModifiers = new bool[(int)eModifiers.COUNT];
        static private int m_nMusicVolume = 50;
        static private int m_nSFXVolume = 50;
        static private int m_nBrightness = 50;

        public static int nMusicVolume
        {
            get { return CSettings.m_nMusicVolume; }
            set { CSettings.m_nMusicVolume = value; }
        }
        public static int nSFXVolume
        {
            get { return CSettings.m_nSFXVolume; }
            set { CSettings.m_nSFXVolume = value; }
        }
        public static int nBrightness
        {
            get { return CSettings.m_nBrightness; }
            set { CSettings.m_nBrightness = value; }
        }

        public static bool GetModifier(eModifiers _eModifier)
        {
            return m_bModifiers[(int)_eModifier];
        }

        public static void SetModifier(eModifiers _eModifier, bool _bActive)
        {
            m_bModifiers[(int)_eModifier] = _bActive;
        }

        public static void ToggleModifier(eModifiers _eModifier)
        {
            m_bModifiers[(int)_eModifier] = !m_bModifiers[(int)_eModifier];
        }
    }
}
